from wx import Notebook
from wx._windows import Panel

class xTab(Notebook):

    def __init__(self, *args, **kwargs):
        Notebook.__init__(self, *args, **kwargs)
        return

    def setPath(self, path):
        page = self.xPage(self)
        self.AddPage(page, path)
        return

    def getSession(self):
        return self.session or {}

    class xPage(Panel):
        def __init__(self, parent):
            Panel.__init__(self, parent)
            return